import md5 from 'js-md5'
let Base64 = require('js-base64').Base64

// const host = 'https://test.youxi1027.com/rest/'
const host = 'http://test.youxi1027.com/'
const appid = 'admin'
const appKey = 'admin'
const getData = (data) => {
  console.log(data, JSON.stringify(data))
  let BaseTransferEntity = {
    object: Base64.encode(JSON.stringify(data)),
    sign: md5(Base64.encode(JSON.stringify(data)) + wx.getStorageSync('randomKey'))
  }
  return BaseTransferEntity
}

const config = {
  host,
  appid,
  appKey,
  getData
}

export default config
